home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _F8DB495F203048ACA11260CED7EB2889 < prev    next >
Encoding:
Text File  |  2002-04-08  |  6.5 KB  |  330 lines

  1. {
  2.     \\ INGAME_PLAYER MENU
  3.  
  4.     menuDef 
  5.     {
  6.         name            "ingame_player"
  7.         visible            1
  8.         fullScreen        0
  9.         rect            105 50 188 138
  10.         disableColor    .36 .42 .24 1
  11.  
  12.         ////////////////////////////////////////////////////////////////////////
  13.         //  Dialog frame
  14.         ////////////////////////////////////////////////////////////////////////
  15.  
  16.         itemDef
  17.         {
  18.             name        window
  19.             style        WINDOW_STYLE_SHADER
  20.             rect        -6 -6 194 144
  21.             background    "gfx/menus/ingame/background.png"
  22.             backcolor    1 1 1 1
  23.             visible        1
  24.             decoration
  25.         }
  26.  
  27.         itemDef
  28.         {
  29.             name        window
  30.             style        WINDOW_STYLE_SHADER
  31.             rect        -12 -10 8 8
  32.             background    "gfx/menus/ingame/frame_topleft.png"
  33.             visible        1
  34.             decoration
  35.         }
  36.  
  37.         itemDef
  38.         {
  39.             name        window
  40.             style        WINDOW_STYLE_SHADER
  41.             rect        -6 -10 194 8
  42.             background    "gfx/menus/ingame/frame_top.png"
  43.             visible        1
  44.             decoration
  45.         }
  46.  
  47.         itemDef
  48.         {
  49.             name        window
  50.             style        WINDOW_STYLE_SHADER
  51.             rect        188 -10 8 8
  52.             background    "gfx/menus/ingame/frame_topright.png"
  53.             visible        1
  54.             decoration
  55.         }
  56.  
  57.         itemDef
  58.         {
  59.             name        window
  60.             style        WINDOW_STYLE_SHADER
  61.             rect        -12 138 8 8
  62.             background    "gfx/menus/ingame/frame_bottomleft.png"
  63.             visible        1
  64.             decoration
  65.         }
  66.  
  67.         itemDef
  68.         {
  69.             name        window
  70.             style        WINDOW_STYLE_SHADER
  71.             rect        -6 138 194 8
  72.             background    "gfx/menus/ingame/frame_bottom.png"
  73.             visible        1
  74.             decoration
  75.         }
  76.  
  77.         itemDef
  78.         {
  79.             name        window
  80.             style        WINDOW_STYLE_SHADER
  81.             rect        188 138 8 8
  82.             background    "gfx/menus/ingame/frame_bottomright.png"
  83.             visible        1
  84.             decoration
  85.         }
  86.  
  87.         itemDef
  88.         {
  89.             name        window
  90.             style        WINDOW_STYLE_SHADER
  91.             rect        188 -6 8 144
  92.             background    "gfx/menus/ingame/frame_right.png"
  93.             visible        1
  94.             decoration
  95.         }
  96.  
  97.         itemDef
  98.         {
  99.             name        window
  100.             style        WINDOW_STYLE_SHADER
  101.             rect        -12 -6 8 144
  102.             background    "gfx/menus/ingame/frame_left.png"
  103.             visible        1
  104.             decoration
  105.         }
  106.  
  107.         ////////////////////////////////////////////////////////////////////////
  108.         //  Buttons
  109.         ////////////////////////////////////////////////////////////////////////
  110.  
  111.         itemDef 
  112.         {
  113.              name        joingame_button
  114.             style        WINDOW_STYLE_FILLED
  115.             type        ITEM_TYPE_BUTTON
  116.              rect        10 10 160 26
  117.             text        "Join Game"
  118.              textalign    1
  119.              textalignx    80
  120.             textaligny    6
  121.             textfont    "hud"
  122.             textscale    .43
  123.             forecolor    .12 .14 .08 1
  124.             backcolor    0 0 0 0
  125.             visible        1
  126.             border        1
  127.             bordercolor    0 0 0 1
  128.             cvarTest    "ui_info_teamgame"
  129.  
  130.             hideCvar 
  131.             { 
  132.                 "1" ; 
  133.             }     
  134.               
  135.             action 
  136.             { 
  137.                 play "sound/misc/menus/select.wav" ; 
  138.  
  139.                 exec "cmd team free" ; 
  140.                 
  141.                 uiScript closeingame 
  142.             }
  143.             mouseEnter 
  144.             { 
  145.                 play "sound/misc/menus/hilite1.wav" ; 
  146.                 setitemcolor joingame_button backcolor .12 .14 .08 1;
  147.                 setitemcolor joingame_button forecolor .49 .56 .27 1;
  148.             }                 
  149.             mouseExit 
  150.             { 
  151.                 setitemcolor joingame_button backcolor 0 0 0 0;
  152.                 setitemcolor joingame_button forecolor .12 .14 .08 1;
  153.             }
  154.         }
  155.  
  156.         itemDef 
  157.         {
  158.              name        joingame_button
  159.             style        WINDOW_STYLE_FILLED
  160.             type        ITEM_TYPE_BUTTON
  161.              rect        10 10 160 26
  162.             text        "Select Team"
  163.              textalign    1
  164.              textalignx    80
  165.             textaligny    6
  166.             textfont    "hud"
  167.             textscale    .43
  168.             forecolor    .12 .14 .08 1
  169.             backcolor    0 0 0 0
  170.             visible        1
  171.             border        1
  172.             bordercolor    0 0 0 1
  173.             cvarTest    "ui_info_teamgame"
  174.  
  175.             showCvar 
  176.             { 
  177.                 "1" ; 
  178.             }     
  179.               
  180.             action 
  181.             { 
  182.                 play "sound/misc/menus/select.wav" ; 
  183.  
  184.                 exec "ui_team" ; 
  185.                 
  186.                 uiScript closeingame 
  187.             }
  188.             mouseEnter 
  189.             { 
  190.                 play "sound/misc/menus/hilite1.wav" ; 
  191.                 setitemcolor joingame_button backcolor .12 .14 .08 1;
  192.                 setitemcolor joingame_button forecolor .49 .56 .27 1;
  193.             }                 
  194.             mouseExit 
  195.             { 
  196.                 setitemcolor joingame_button backcolor 0 0 0 0;
  197.                 setitemcolor joingame_button forecolor .12 .14 .08 1;
  198.             }
  199.         }
  200.  
  201.         itemDef 
  202.         {
  203.               name        blueteam_button
  204.             type        ITEM_TYPE_BUTTON
  205.               style        WINDOW_STYLE_FILLED
  206.               rect        10 40 160 26
  207.             text        "Spectate"
  208.               textalign    1    
  209.               textalignx    80
  210.               textaligny    6
  211.             textfont    "hud"
  212.             textscale    .43
  213.             forecolor    .12 .14 .08 1
  214.             backcolor    0 0 0 0
  215.             visible        1
  216.             border        1
  217.             bordercolor    0 0 0 1
  218.  
  219.               action 
  220.             { 
  221.                 play "sound/misc/menus/select.wav" ; 
  222.  
  223.                 exec "cmd team s" ; 
  224.                 uiScript closeingame 
  225.             }
  226.             mouseEnter 
  227.             { 
  228.                 play "sound/misc/menus/hilite1.wav" ; 
  229.                 setitemcolor blueteam_button backcolor .12 .14 .08 1;
  230.                 setitemcolor blueteam_button forecolor .49 .56 .27 1;
  231.             }                 
  232.             mouseExit 
  233.             { 
  234.                 setitemcolor blueteam_button backcolor 0 0 0 0;
  235.                 setitemcolor blueteam_button forecolor .12 .14 .08 1;
  236.             }
  237.         }
  238.  
  239.         itemDef 
  240.         {
  241.               name        autoteam_button
  242.             type        ITEM_TYPE_BUTTON
  243.             style        WINDOW_STYLE_FILLED
  244.               rect        10 70 160 26
  245.               text        "Outfitting"
  246.               textalign    1    
  247.               textalignx    80
  248.               textaligny    6
  249.             textfont    "hud"
  250.             textscale    .43
  251.             forecolor    .12 .14 .08 1
  252.             backcolor    0 0 0 0
  253.             visible        1
  254.             border        1
  255.             bordercolor    0 0 0 1
  256.  
  257.             cvarTest    "ui_info_pickupsdisabled"
  258.  
  259.             disableCvar 
  260.             { 
  261.                 "0" ; 
  262.             }     
  263.               
  264.             action 
  265.             { 
  266.                 play "sound/misc/menus/select.wav" ; 
  267.  
  268.                 exec "ui_outfitting" ; 
  269.                 uiScript closeingame 
  270.             }
  271.             mouseEnter 
  272.             { 
  273.                 play "sound/misc/menus/hilite1.wav" ; 
  274.                 setitemcolor autoteam_button backcolor .12 .14 .08 1;
  275.                 setitemcolor autoteam_button forecolor .49 .56 .27 1;
  276.             }                 
  277.             mouseExit 
  278.             { 
  279.                 setitemcolor autoteam_button backcolor 0 0 0 0;
  280.                 setitemcolor autoteam_button forecolor .12 .14 .08 1;
  281.             }
  282.         }
  283.  
  284.         itemDef 
  285.         {
  286.               name        specteam_button
  287.             type        ITEM_TYPE_BUTTON
  288.               style        WINDOW_STYLE_FILLED
  289.               rect        10 100 160 26
  290.               text        "Objectives"
  291.               textalign    1    
  292.               textalignx    80
  293.               textaligny    6
  294.             textfont    "hud"
  295.             textscale    .43
  296.             forecolor    .12 .14 .08 1
  297.             backcolor    0 0 0 0
  298.             visible        1
  299.             border        1
  300.             bordercolor    0 0 0 1
  301.           
  302.             cvarTest    "ui_about_gametype"
  303.  
  304.             disableCvar 
  305.             { 
  306.                 "0" ; 
  307.                 "1" ; 
  308.             }     
  309.  
  310.             action 
  311.             { 
  312.                 play "sound/misc/menus/select.wav" ; 
  313.  
  314.                 exec "ui_objectives" ; 
  315.                 uiScript closeingame 
  316.             }
  317.             mouseEnter 
  318.             { 
  319.                 play "sound/misc/menus/hilite1.wav" ; 
  320.                 setitemcolor specteam_button backcolor .12 .14 .08 1;
  321.                 setitemcolor specteam_button forecolor .49 .56 .27 1;
  322.             }                 
  323.             mouseExit 
  324.             { 
  325.                 setitemcolor specteam_button backcolor 0 0 0 0;
  326.                 setitemcolor specteam_button forecolor .12 .14 .08 1;
  327.             }
  328.         }
  329.     }
  330. }